package com.oms.runningdata;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

@Component
public class SystemInitData {

	static public Map<Short, String> userRole=new HashMap<Short, String>();
	static public Map<Short, String> genders=new HashMap<Short, String>();
	static public Map<Short, String> securityQuestion=new HashMap<Short, String>();
	static public Map<Short, String> infoOpenState=new HashMap<Short, String>();
	static public Map<Short, String> accountState=new HashMap<Short, String>();
	static public Map<Integer, String> educationBackground=new HashMap<Integer, String>();

	public SystemInitData() {
		
		System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!开始初始化数据!!!!!!!!!!!!!!!!!!!!!!!!!!!!");

		//设置性别map
		userRole.put((short)0, "普通用户");
		userRole.put((short)1, "后台管理员");
		userRole.put((short)2, "后台超级管理员");
		
		//设置性别map
		genders.put((short)0, "保密");
		genders.put((short)1, "男");
		genders.put((short)2, "女");
		
		//初始化密保问题信息
		securityQuestion.put((short)0, null);
		securityQuestion.put((short)1, "您母亲的姓名是？");
		securityQuestion.put((short)2, "您父亲的姓名是？");
		securityQuestion.put((short)3, "您配偶的姓名是？");
		securityQuestion.put((short)4, "您的出生地是？");
		securityQuestion.put((short)5, "您高中班主任的名字是？");
		securityQuestion.put((short)6, "您初中班主任的名字是？");
		securityQuestion.put((short)7, "您小学班主任的名字是？");
		securityQuestion.put((short)8, "您的小学校名是？");
		securityQuestion.put((short)9, "您的学号（或工号）是？");
		securityQuestion.put((short)10, "您父亲的生日是？");
		securityQuestion.put((short)11, "您母亲的生日是？");
		securityQuestion.put((short)12, "您配偶的生日是？");
		
		//设置信息开放程度map
		infoOpenState.put((short)0, "个人信息外人不可见");
		infoOpenState.put((short)1, "个人次要信息可见");
		infoOpenState.put((short)2, "个人次要信息可见");
		infoOpenState.put((short)2, "个人信息全部可见");
		infoOpenState.put((short)2, "个人信息全部可见");
		infoOpenState.put((short)2, "个人信息好友可见概要");
		infoOpenState.put((short)2, "个人信息好友可见全部");
		
		//设置账号状态map
		accountState.put((short)0, "正常");
		accountState.put((short)1, "被封号");
		accountState.put((short)2, "被禁止发帖");
		
		//初始化教育程度map
		educationBackground.put(0, null);
		educationBackground.put(1, "初中");
		educationBackground.put(2, "高中");
		educationBackground.put(3, "大专");
		educationBackground.put(4, "本科");
		educationBackground.put(5, "硕士");
		educationBackground.put(6, "博士");
		educationBackground.put(7, "博士后");

	}

	
}
